package com.regent.central.bill.service.storehouse;

import com.regent.central.bill.core.storehouse.StockInventoryItemSku;
import com.regent.central.infrastructure.service.DomainService;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface StockInventoryItemSkuService extends DomainService<StockInventoryItemSku> {

    /**
     * 根据sku获取该时间未调整的盘点id
     *
     * @param skuId
     * @param storehouseId
     * @param startTime
     * @param endTime
     * @return
     * @throws Exception
     */
    List<String> selectNoAdjustInventoryId(String skuId, String storehouseId, Date startTime, Date endTime) ;

    /**
     * 根据sku更新账面库存
     *
     * @param skuId
     * @param nearInventoryId
     * @param stock
     */
    void updateBookStock(String skuId, String nearInventoryId, BigDecimal stock) ;

}
